package com.opencloud.iot.client.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 基础记录
 * @author yeyong
 */
@TableName("iot_taskrun")
public class IotTaskRun implements Serializable {

    private static final long serialVersionUID= 3678445380802306230L;

    /**
     * 自增长ID
     */
    @ApiModelProperty(value = "自增长ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 任务ID
     */
    @ApiModelProperty(value = "任务ID")
    private Integer taskid;

    /**
     * 执行日期
     */
    @ApiModelProperty(value = "执行日期")
    private Date thisdate;

    /**
     * 任务状态
     */
    @ApiModelProperty(value = "任务状态")
    private Integer status;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createtime;

    /**
     * 异常描述
     */
    @ApiModelProperty(value = "异常描述")
    private String exception;

    /**
     * 任务结果
     */
    @ApiModelProperty(value = "任务结果")
    private String result;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTaskid() {
        return taskid;
    }

    public void setTaskid(Integer taskid) {
        this.taskid = taskid;
    }

    public Date getThisdate() {
        return thisdate;
    }

    public void setThisdate(Date thisdate) {
        this.thisdate = thisdate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getException() {
        return exception;
    }

    public void setException(String exception) {
        this.exception = exception;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    @Override
    public String toString() {
        return "IotTaskrun{" +
                "id=" + id +
                ", taskid=" + taskid +
                ", thisdate=" + thisdate +
                ", status=" + status +
                ", createtime=" + createtime +
                ", exception=" + exception +
                ", result=" + result +
                "}";
    }
}
